package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.CategoryDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entitry.Spu;

import java.util.List;

public interface SpuService extends IService<Spu> {

    PageDTO<SpuDTO> listSpuByPage(Integer page, Integer rows, Boolean saleable, Long categoryId, Long brandId, Long id);

    List<SpuDTO>  listSpuById(Long id);


    List<SpuDTO>  listSpuWithSkuWithSpuDetail(Long id);

    List<CategoryDTO> listCategorySoftByIds(List<Long> id);

    void addGoods(SpuDTO spuDTO);

    void updateGoodssaleable(Long spuId,Boolean saleable);

    void updateGoods(SpuDTO spuDTO);


}
